# -*- coding: utf-8 -*-
"""
Created on Tue Oct 31 19:08:18 2023

@author: 楠川之木
"""

class Cylinder:
    num=3.14
    def __init__(self,a,b):
        self.r=a
        self.h=b
    def volume(self):
        r=float(self.r)
        h=float(self.h)
        self.v=r*r*h*Cylinder.num
    def print(self):
        print(self.v)

a=input("输入半径:")
b=input("输入高：")
c1=Cylinder(a,b)
c1.volume()
print("圆柱体的体积为",end='')
c1.print()
        